<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>我购买的商品</title>
<?php  include(DEDEMEMBER."/templets/head_inc.htm"); ?>
</head>
<body>
<?php  include(DEDEMEMBER."/templets/head.htm"); ?>
<div class="wrapper lineT">
  <div class="mainBox">
    <div class="main">
      <?php  include(DEDEMEMBER."/templets/menu.php"); ?>
      <div class="dedeMain">
        <div class="location">我购买的商品</div>
        <div class="titleTabBar bgGreen lineTB">
          <ul>
            <li><a href="operation.php">点卡/会员定单</a></li>
            <li><a href="mypay.php" id="buy">我购买的文章</a></li>
            <li><a href="shops_orders.php">商品定单</a></li>
            <li class="select"><a href="shops_products.php" id="buy">我购买的商品</a></li>
          </ul>
        </div>
        <div class="mL10 mR10 mTB10">
          <div class="titleBar bgGrass lineB mB10">
            <div class="fLeft"><strong>购买的商品</strong></div>
            <div class="fRight titSecondary white" style="margin-top:5px;"></div>
          </div>
          
          <?php if(!empty($oid)){ ?>
          <table cellspacing="1" class="submit">
            <thead>
              <tr>
                <th colspan="2" ><strong>订单信息</strong></th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td width="15%" align="right" valign="top">订单号：</td>
                <td><strong><?php echo $oid?></strong></td>
              </tr>
              <tr>
                <td align="right" valign="top">状态：</td>
                <td><?php echo GetSta($row['state'],$oid)?></td>
              </tr>
              <tr>
                <td align="right" valign="top">商品价格：</td>
                <td><?php echo $row['price']?>元</td>
              </tr>
              <tr>
                <td align="right" valign="top">配送：</td>
                <td>方式:<?echo $row['dname'];?> 费用:<?php echo $row['dprice']?>元</td>
              </tr>
              <tr>
                <td align="right" valign="top">总计：</td>
                <td><?php echo $row['priceCount']?>元</td>
              </tr>
              <tr>
                <td align="right" valign="top">发生时间：</td>
                <td><?php echo GetDateTimeMk($row['stime'])?></td>
              </tr>
              <tr>
                <td align="right" valign="top">收货人：</td>
                <td><?php echo $row['consignee']?></td>
              </tr>
              <tr>
                <td align="right" valign="top">地址：</td>
                <td><?php echo $row['address']?></td>
              </tr>
              <tr>
                <td align="right" valign="top">邮编：</td>
                <td><?php echo $row['zip']?></td>
              </tr>
              <tr>
                <td align="right" valign="top">联系电话：</td>
                <td><?php echo $row['tel']?></td>
              </tr>
              <tr>
                <td align="right" valign="top">邮箱：</td>
                <td><?php echo $row['email']?></td>
              </tr>
              <tr>
                <td align="right" valign="top">留言：</td>
                <td><?php echo $row['des']?></td>
              </tr>
            </tbody>
          </table>
          <?php }?>
          <table cellspacing="1" class="list mT10">
            <thead>
              <tr>
                <th>订单号</th>
                <th width="15%">名称</th>
                <th width="10%"><span style="float:right;">单价(元/单位)</span></th>
                <th width="10%" align="center">数量</th>
                <th width="15%" align="center">购买时间</th>
              </tr>
            </thead>
            <tbody>
              
            {dede:datalist}
            <tr>
              <td><span class="titDot icon16 fLeft"></span><a href="shops_products.php?do=show&oid={dede:field.oid/}">{dede:field.oid/}</a></td>
              <td align="center"><a href="<?php echo $cfg_cmspath;?>/plus/view.php?aid={dede:field.aid/}" target="_blank">{dede:field.title/}</a></td>
              <td align="right"><strong>{dede:field.price/}</strong></td>
              <td align="center">{dede:field.buynum/}</td>
              <td align="center">{dede:field.oid function="carTime(@me)"/}</td>
            </tr>
            {/dede:datalist}
            </tbody>
            
            <tfoot>
              <tr>
                <td colspan="5"><div class="pages mTB10 fRight">{dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}</div>
                  <div class="clear"></div></td>
              </tr>
            </tfoot>
          </table>
        </div>
      </div>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<?php include(DEDEMEMBER."/templets/foot.htm");?>
</body>
</html>
